package org.rcgwt.sample.server;

import java.util.ArrayList;
import java.util.List;

import org.rcgwt.sample.client.EmployeeService;
import org.rcgwt.sample.client.model.Employee;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class EmployeeServiceImpl extends RemoteServiceServlet implements
		EmployeeService {
	private static final long serialVersionUID = 4445458361257115341L;

	public List<Employee> getEmployees() {
	    List<Employee> employees = new ArrayList<Employee>();
	    employees.add(new Employee(1, "John", "SMITH", "jsmith@hello.com"));
	    employees.add(new Employee(2, "Mario", "JAMES", "mjames@hello.com"));
	    employees.add(new Employee(3, "Tom", "LAGRANGE", "tlagrange@hello.com"));
	    employees.add(new Employee(4, "Henry", "FORD", "hford@hello.com"));
	    return employees;
	}

}
